﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenTK_Demo
{
    public class Service
    {
        public static string[] GetShaderCode(string vpath = @"./shader/default.vert", string fpath = @"./shader/default.frag")
        {
            string[] codes = new string[2];
            using (StreamReader sr = new StreamReader(vpath))
            { codes[0] = sr.ReadToEnd(); }
            using (StreamReader sr = new StreamReader(fpath))
            { codes[1] = sr.ReadToEnd(); }
            return codes;
        }


    }
}
